<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>角色</title>
</head>

<body>
    <input type="button" value="新增" onclick="addRole()">
    <table>
        <tr>
            <th>主键Id</th>
            <th>角色名称</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
        {% for item in list %}
        <tr id="{{item.id}}">
            <td>{{item.id}}</td>
            <td>{{item.role_name}}</td>
            <td>{{item.remarks}}</td>
            <td>
                <input type="button" value="编辑" onclick="redirectEditRole(`{{item.id}}`)">
                <input type="button" value="删除" onclick="delRole(`{{item.id}}`)">
            </td>
        </tr>
        {% endfor %}
    </table>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
    <script src="../statics/js/axios.min.js"></script>
    <script src="../statics/js/roles.js"></script>
</body>

</html>